#!/bin/sh

pid=`ps -ef | grep yx-erp-api | grep -v grep | awk '{print $2}'`

if [ -z "$pid" ]
then
    echo yx-erp-api is already stopped
else
    echo kill -15 $pid
    kill -15 $pid
fi